//
//  Custom+UILabel.swift
//  weibo
//
//  Created by lucy on 2016/10/23.
//  Copyright © 2016年 com.huashengHuaSheng. All rights reserved.
//

import UIKit


extension UILabel{

    convenience init(textColor: UIColor, textSize: CGFloat, textContent: String,maxWidth:CGFloat = 0) {
        
        self.init()
        self.text = textContent
        self.font = UIFont.systemFont(ofSize: XDNormalSizeFont)
        self.textColor = textColor
        if maxWidth>0 {
            self.numberOfLines = 0
            self.preferredMaxLayoutWidth = maxWidth
        }
        
    }








}


























